package com.cnpc.rightslogan.controller;

import com.cnpc.rightslogan.utils.common.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by Administrator on 2017/9/13.
 */
@RestController
@RequestMapping("room")
@Api("CardController相关的api")
@Slf4j
public class RoomController extends BaseController {

    @ApiOperation(value = "跳转到房间", notes = "跳转到房间")
    @GetMapping("/in")
    public ModelAndView in() {
        String roomNum = "Room" + System.currentTimeMillis();
        ModelAndView modelAndView = new ModelAndView("/attack.html");
        modelAndView.addObject("roomNum", roomNum);
        return modelAndView;
    }
}